Note that as with all fixtures, this code will need to be "registered" with cslim. The default installation of cslim provides a file called "Fixtures.c". To register this class, you'd add: Fixtures.c
How can you tell it's a script table? The word script on the first row.
And here's an example fixture that can handle this table. Note, I used g++ 4.4 (or 4.5) and provided the command-line parameter "-std=c++0x". This allows me to use the auto keyword in its new form: ProgrammingTheCalculator.cpp
Finally, the dreaded query table. The query table requires a bit more work to produce a result. So this section contains a table, a fixture and a utility class to help create the query results. Example Query Table
This code makes use of a utility class QueryResultAccumulator. This is available in source from github (warning, as of this writing it's in a raw form): QueryResultAccumulator.h
Table of Contents
Decision Table
Here is a basic table in FitNesse:Example Decision Table
Since no table type is provided, this is a decision table. The basic mechanics for this table are:
Here's cslim code that can handle this table:
ExecuteBinaryOperator.cpp
Note that as with all fixtures, this code will need to be "registered" with cslim. The default installation of cslim provides a file called "Fixtures.c". To register this class, you'd add:
Fixtures.c
This particular Fixtures.c file registeres all thee fixtures mentioned on this page.
Script Table
Here is an example of a script table:Example Script Table
How can you tell it's a script table? The word script on the first row.
And here's an example fixture that can handle this table. Note, I used g++ 4.4 (or 4.5) and provided the command-line parameter "-std=c++0x". This allows me to use the auto keyword in its new form:
ProgrammingTheCalculator.cpp
Query Table
Finally, the dreaded query table. The query table requires a bit more work to produce a result. So this section contains a table, a fixture and a utility class to help create the query results.Example Query Table
How can you tell this is a query table? The word "Query" in the first row.
Now the fixture to handle it:
SingleCharacterNameOperators.cpp
This code makes use of a utility class QueryResultAccumulator. This is available in source from github (warning, as of this writing it's in a raw form):
QueryResultAccumulator.h
QueryResultAccumulator.cpp
<--Back